using System.Data;
using IDAL;

namespace BLL
{
    /// <summary>
    /// 业务逻辑类SuspectPointInfo的摘要说明
    /// </summary>
    public class SuspectPointInfo
    {
        private readonly ISuspectPointInfo dal = DALFactory.DataAccess.CreateSuspectPointInfo();

        public SuspectPointInfo()
        {
        }

        /// <summary>
        /// 是否存在该记录
        /// </summary>
        public bool Exists(int Id)
        {
            return dal.Exists(Id);
        }

        /// <summary>
        /// 是否存在该记录
        /// </summary>
        public bool Exists(string name)
        {
            return dal.Exists(name);
        }

        /// <summary>
        /// 增加一条记录
        /// </summary>
        public bool Add(Model.SuspectPointInfo model)
        {
            return dal.Add(model);
        }

        /// <summary>
        /// 增加一条记录，返回ID
        /// </summary>
        public int Add2(Model.SuspectPointInfo model)
        {
            return dal.Add2(model);
        }

        /// <summary>
        /// 更新一条记录
        /// </summary>
        public bool Update(Model.SuspectPointInfo model)
        {
            return dal.Update(model);
        }

        /// <summary>
        /// 删除一条记录
        /// </summary>
        public bool Delete(int Id)
        {
            return dal.Delete(Id);
        }

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public Model.SuspectPointInfo GetModel(int Id)
        {
            return dal.GetModel(Id);
        }

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public Model.SuspectPointInfo GetModel(string name)
        {
            return dal.GetModel(name);
        }

        /// <summary>
        /// 获取数据列表
        /// </summary>
        public DataSet GetList(string strWhere)
        {
            return dal.GetList(strWhere);
        }
    }
}
